{% extends 'base.html' %}

{% block content %}
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
        <legend id="titleLeg"> 项目版信息管理-添加</legend>
    </fieldset>

    <table class="layui-hide" id="test" lay-filter="test"></table>

    <div style="width: 900px">
        <form class="layui-form" action="" lay-filter="example">
            <div class="layui-form-item">
                <label class="layui-form-label">项目名称</label>
                <div class="layui-input-block">
                    <input type="text" name="name" lay-verify="required" autocomplete="off" placeholder="项目名称"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">项目位置</label>
                <div class="layui-input-block">
                    <input type="text" name="position" lay-verify="required" autocomplete="off" placeholder="请输入项目位置"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">部署时间</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" id="gettime" name="ctime" placeholder="请选择时间">
                </div>
            </div>

            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">接收</label>
                <div class="layui-input-block">
                <textarea placeholder="请输入内容" class="layui-textarea" name="receive" style="height: 130px">
                </textarea>
                </div>
            </div>

            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">MYSQL</label>
                <div class="layui-input-block">
                <textarea placeholder="请输入内容" class="layui-textarea" name="mysql" style="height: 130px">
                </textarea>
                </div>
            </div>

            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">WEB</label>
                <div class="layui-input-block">
                <textarea placeholder="请输入内容" class="layui-textarea" name="webe" style="height: 100px">
                </textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">jdk</label>
                <div class="layui-input-block">
                    <input type="text" name="jdk" lay-verify="required" autocomplete="off" placeholder="请输入jdk版本"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">tomcat</label>
                <div class="layui-input-block">
                    <input type="text" name="tomcat" lay-verify="required" autocomplete="off" placeholder="请输入tomcat版本"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">redis</label>
                <div class="layui-input-block">
                    <input type="text" name="redis" lay-verify="required" autocomplete="off" placeholder="请输入redis版本"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">zookeeper</label>
                <div class="layui-input-block">
                    <input type="text" name="zookeeper" lay-verify="required" autocomplete="off"
                           placeholder="请输入zookeeper版本"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">kakfa</label>
                <div class="layui-input-block">
                    <input type="text" name="kakfa" lay-verify="required" autocomplete="off" placeholder="请输入kakfa版本"
                           class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
                    <a href="{{ url_for('manage.index') }}" class="layui-btn layui-btn-primary">返回</a>
                </div>
            </div>

        </form>

    </div>

{% endblock %}

{% block script %}
    {{ super() }}
    <script>
        function returnManageIndex() {
            setInterval(function () {
                window.open('{{ url_for('manage.index') }}', '_self')
            }, 1000)
        }
        {# 返回上一级#}
        $("#btnback").on('click', function () {
            {#window.location.href = "{{ url_for('manage.index') }}"#}
            window.open('/manage', '_self')
        })
    </script>
{% endblock %}